package cn.edu.guet.service.om.impl;

import cn.edu.guet.bean.om.OPost;
import cn.edu.guet.mapper.om.OPostMapper;
import cn.edu.guet.service.om.OPostService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import java.util.List;

@Service
public class OPostServiceImpl implements OPostService {
    @Autowired
    private OPostMapper oPostMapper;
    @Override
    public List<OPost> viewOPost(Integer gid) {
        return oPostMapper.viewOPost(gid);
    }

    @Override
    public void deleteOPost(Integer pid) {
        oPostMapper.deleteOPost(pid);
    }

    @Override
    public String getRole(String loginusername) {
        return oPostMapper.getRole(loginusername );
    }

    @Override
    public Integer getGid(String loginusername) {
        return oPostMapper.getGid(loginusername);
    }

    @Override
    public void deleteItemsBypId(int parseInt) {
        oPostMapper.deleteItemsBypId(parseInt);
    }
}
